﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
namespace Aulac.Rsc.Ems
{
    /// <summary>
    /// Thông tin về loại khoa phòng
    /// </summary>
    public class DeptTypesInfo
    {
        /// <summary>
            /// Khoa kham benh
            /// </summary>
        public const string KKB = "KKB";

       /// <summary>
        /// Khoa cap cuu
        /// </summary>
        public const string KCC = "KCC";

        /// <summary>
        /// Khoa dieu trị
        /// </summary>
        public const string KDT = "KDT";

        /// <summary>
        /// Phong hành chính
        /// </summary>
        public const string PHC = "PHC";

        /// <summary>
        /// Khoa Can lam sang
        /// </summary>
        public const string KLS = "KLS";
        
        /// <summary>
        /// Khoa thuc hien TPTT
        /// </summary>
        public const string KPT = "KPT";

        /// <summary>
        /// Khoa duoc
        /// </summary>
        public const string KDC = "KDC";


        static Dictionary<string, string> mListDeptType = null;
        private static void CreateDeptype()
        {
            if (mListDeptType == null)
            {
                mListDeptType = new Dictionary<string, string>();
                mListDeptType.Add(KKB, "Khoa khám bệnh");
                mListDeptType.Add(KCC, "Khoa cấp cứu");
                mListDeptType.Add(KDT, "Khoa điều trị");
                mListDeptType.Add(PHC, "Phòng hành chính");
            }
        }
        public static Dictionary<string, string> ListDeptType
        {
            get {
                return mListDeptType;
            }
        }
    }

    public class ObjectTypesInfo
    {
        /// <summary>
        /// Doi tuong khac
        /// </summary>
        public const string Khac = "1";

        /// <summary>
        /// Benh nhan
        /// </summary>
        public const string BN = "2";

        /// <summary>
        /// Khoa phong
        /// </summary>
        public const string KHOAPHONG = "3";

        /// <summary>
        /// Nguon Kinh phi kham chua benh
        /// </summary>
        public const string NKPKCB = "4";

        /// <summary>
        /// Tram y tế
        /// </summary>
        public const string TRAMYTE = "5";
  
        /// <summary>
        /// Nguon du an
        /// </summary>
       // public const string NKPDA = "6";

        /// <summary>
        /// Khoa yeu cau
        /// </summary>
        public const string KHOADIEUTRI = "7";

        /// <summary>
        /// Khoa thuc hien
        /// </summary>
        public const string KHOACHIPHI = "8";

        /// <summary>
        /// Can bo y te
        /// </summary>
        public const string CBYT = "9";

        /// <summary>
        /// Chi phi kham chua benh
        /// </summary>
        public const string CPKCB = "10";

        /// <summary>
        /// Bs dieu tri
        /// </summary>
        public const string BSDTR = "11";

    }

    public class ObjTypeGrp
    {
        /// <summary>
        /// Nhom loai duoi tuong khac
        /// </summary>
        public const string KHA = "KHA";
        
        /// <summary>
        /// Nhom loai duoi tuong Benh nhan
        /// </summary>
        public const string BNN = "BNN";

        /// <summary>
        /// Nhom doi tuong khoa phong
        /// </summary>
        public const string KHP = "KHP";

        /// <summary>
        /// Nhom doi tuong Nguon KP
        /// </summary>
        public const string NKP = "NKP";

        /// <summary>
        /// Nhom doi tuong can bo cong nhan vien
        /// </summary>
        public const string CBV = "CBV";

        /// <summary>
        /// Nhom doi tuong Chi phi kham chua benh
        /// </summary>
        public const string CHP = "CHP";

    }
    
    //public class ItemGrpTypes
    //{
    //    /// <summary>
    //    /// Thuốc 
    //    /// </summary>
    //    public const string GrpDrug = "01";
    //    /// <summary>
    //    /// Loại thuốc Tây y 
    //    /// </summary>
    //    public const string GrpDrugTY = "01.01";
    //    /// <summary>
    //    /// Loại thuốc Đông y
    //    /// </summary>
    //    public const string GrpDrugDY = "01.02";
    //    /// <summary>
    //    ///  Vật tư y tế
    //    /// </summary>
    //    public const string GrpMdnMaterials = "02";
    //    /// <summary>
    //    /// Loại dịch vụ cận lâm sàng
    //    /// </summary>
    //    public const string GrpCLS = "03";
    //    /// <summary>
    //    /// Loại chi phí phẩu thuật 
    //    /// </summary>
    //    public const string GrpPT = "04";
    //    /// <summary>
    //    ///  Loại chi phí thủ thuật
    //    /// </summary>
    //    public const string GrpTT = "05";
    //    /// <summary>
    //    /// Các khoản lệ phí
    //    /// </summary>
    //    public const string GrpFees = "06";
    //    /// <summary>
    //    /// Y dụng cụ y tế
    //    /// </summary>
    //    public const string GrpHealthTools = "07";


    //    public static Dictionary<string, string> GetListMdnGrpTypes()
    //    {
    //        Dictionary<string, string> list = new Dictionary<string, string>();

    //        list.Add(ItemGrpTypes.GrpDrug, "THUỐC");
    //        list.Add(ItemGrpTypes.GrpDrugTY, "THUỐC TÂY Y");
    //        list.Add(ItemGrpTypes.GrpDrugDY, "THUỐC ĐÔNG Y");
    //        list.Add(ItemGrpTypes.GrpFees, "CÁC KHOẢN LỆ PHÍ");
    //        list.Add(ItemGrpTypes.GrpHealthTools, "Y DỤNG CỤ Y TẾ");
    //        list.Add(ItemGrpTypes.GrpMdnMaterials, "VẬT TƯ Y TẾ");
    //        list.Add(ItemGrpTypes.GrpPT, "DỊCH VỤ PHẨU THUẬT");
    //        list.Add(ItemGrpTypes.GrpTT, "DỊCH VỤ THỦ THUẬT");
    //        list.Add(ItemGrpTypes.GrpCLS, "DỊCH VỤ CẬN LÂM SÀNG");
    //        return list;
    //    }
    //}

    public class PriceCostInfo
    {
        /// <summary>
        /// Don gia do nha nuoc quy dinh
        /// </summary>
        public const string PriceSelling = "PriceSelling";
        /// <summary>
        /// Don gia do nha nuoc quy dinh cong phan dich vu do dong gop co phan
        /// </summary>
        public const string PriceSevice1 = "PriceSevice1";
        /// <summary>
        /// Don gia do dong gop co phan
        /// </summary>
        public const string PriceSevice2 = "PriceSevice2";

        /// <summary>
        /// Ti le gia ban so voi gia mua do nha nuoc quy dinh
        /// </summary>
        public const string PriceRate = "PriceRate";
        /// <summary>
        /// Ti le dich vu thu them so voi don gia nha nuoc
        /// </summary>
        public const string PriceSeviceRate1 = "PriceSeviceRate1";

        /// <summary>
        /// Ti le thu dich vu so voi gia mua cua loai hang hoa do co phan dong gop
        /// </summary>
        public const string PriceSeviceRate2 = "PriceSeviceRate2";

        /// <summary>
        /// Gia ton
        /// </summary>
        public const string PrimeCostInExc = "PrimeCostInExc";
    }


    public class RscFncTypeGrp
    {
        /// <summary>
        /// Nhom Nguon kinh phi khac
        /// </summary>
        public const string KHA = "KHA";

        /// <summary>
        /// Nhom Nguon BHYT
        /// </summary>
        public const string BHY = "BHY";

        /// <summary>
        /// Nhom nguon du an
        /// </summary>
        public const string DAN = "DAN";

        /// <summary>
        /// Nguon Tai tro
        /// </summary>
        public const string TTR = "TTR";

        /// <summary>
        /// Nguon co phan 
        /// </summary>
        public const string COP = "COP";

    }


    public class ModulesSys
    {
        public const string HspExamNote = "HspExamNote",
            FormHspInNote = "FormHspInNote",
            FormHspOutNote = "FormHspOutNote",
            FormHspTranferNote = "FormHspTranferNote",

            FormIssueMdnPntNote = "FormIssueMdnPntNote",//phieu Caps thuoc cho benh nhan
            FormIssueToolPntNote = "FormIssueToolPntNote",//phieu cap dung cu cho bn
            FormIssueDrugToDept = "FormIssueDrugToDept",//phieu Cap thuoc cho khoa
            FormIssueToolToDept = "FormIssueToolToDept",//phieu cap dung cu cho khoa
            FormHspFeeNote = "FormHspFeeNote",
            FormHspVRecFeeNote = "FormHspVRecFeeNote",
            FrmPaymentFee = "FrmPaymentFee",
            FormHspFeeOtherNote = "FormHspFeeOtherNote",
            FormInvRelsVoucherMdn = "FormInvRelsVoucherMdn",
            FormHspVDirectRecFee = "FormHspVDirectRecFee", //Phiếu thanh toán trực tiếp
            FormHspRecVTempFee = "FormHspRecVTempFee", //PHiếu tạm thu
            FormHspVAdditionFee = "FormHspVAdditionFee", //Phiếu thu thêm
            FormHspVGiveBackFee = "FormHspVGiveBackFee",//PHiếu trả lại tiền thừa
            FormCompanyInfo = "FormCompanyInfo",
            FormDrug = "FormDrug",
            FormDrugGrp = "FormDrugGrp",
            FormTreatyDept = "FormTreatyDept",
            FormDrugStore = "FormDrugStore",
            FormReducedObject = "FormReducedObject",
            FormPatientRegistry = "FormPatientRegistry",
            FormMdnTranferStore = "FormMdnTranferStore";

        //IssueMdnPntNote = "IssueMdnPntNote",
        public const string
            FormRecvMdnStore = "FormRecvMdnStore",//Nhap thuoc,
            FormRecvToolStore = "FormRecvToolStore",//Nhap dung cu,
            FormRelsMdnStore = "FormRelsMdnStore",//Phieu xuat kho
            FormRelsTool = "FormRelsTool";//Xuat dung cu,

    }

}
